<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>我的互动-我爱我的体育</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">
    <link rel="stylesheet" href="/assets/kxdrmobile/sui/style.css">
	<script type='text/javascript' src="//g.alicdn.com/tmapp/tida2/2.0.141/tida.js?appkey=23270341" charset='utf-8'></script>
    <script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
  </head>
  <body>
  <input type="hidden" class="sid" value="{$sid}" />
      <div class="page-group">
		<div class="page page-current" id='event'>
		  <header class="bar bar-nav">
			<a class="button button-link button-nav pull-left {if $appname=='taobao'}back{/if}" href="/">
			  <span class="icon icon-left"></span>
			  返回
			</a>
		  </header>
		  <div class="content">
<img src="{$event.pic_url|replace:'http:':''}"  style="width:100%"/>
<div class="content-block-title">比赛时间：{$event.start_time|date_format:"%Y年%m月%d日 %H时%M分"}</div>
<div class="content-block-title">  
{if $event.is_vaild>0}
注意！{$event.guess_time_str}结束预测，请抓紧时间！
{else}
抱歉，比赛已于{$event.game_time_str}开始，超过预测时间
{/if}
</div>
<div class="content-block inset">
<div class="content-block-inner">
  <p style="text-align:center">
  </p>  
  <p style="text-align:center">
  预测时间还剩：{$event.left_time_str}
  </p>
</div>
</div> 
<div class="content-block-title">达人预测：</div>
<div class="content-block case-block">
<input type="hidden" name="multi_yes" value="{$event.multi_yes}" />
<input type="hidden" name="multi_no" value="{$event.multi_no}" />
  {foreach from=$players item=player key=epid}
	<div class="case">
	  <h2 style="color:#666;margin-bottom:0">{$player.player_name}</h2>
	  <p>{$player.title}</p>
	  {if $player.think_type_way ==1}
	  {if $player.guess}您已经预测：是的{else}请预测{/if}
	  <form action="/?m=kxdrmobile&a=guess" method="GET" class="ajax-submit">
	  <input type="hidden" name="value" value="1" />
	  <input type="hidden" name="eid" value="{$event.id}" />
	  <input type="hidden" name="sid" value="{$sid}" />
	  <input type="hidden" name="guess_type" class="multi" value="only_y" />
	  <input type="hidden" name="player" value="{$player.player_id}" />
	  <input type="hidden" name="event_player" value="{$player.epid}" />
	  <input type="hidden" name="is_guessed" value="{if $player.guess.guess_type=='only_y'}1{else}0{/if}" class="js-guess-only_y-{$player.epid}" />
	  <button type="submmit" class="button button-round {if $player.guess}button-fill color-orange{/if} js-{$player.epid}-only_y"  >{if $player.guess}取消预测{else}√我猜是的{/if}</button>
	  </form>
	  {/if}	  
	  {if $player.think_type_way ==2}
	  {if $player.guess}您已经预测：不是{else}请预测{/if}
	  <form action="/?m=kxdrmobile&a=guess" method="GET" class="ajax-submit">
	  <input type="hidden" name="value" value="0" />
	  <input type="hidden" name="eid" value="{$event.id}" />
	  <input type="hidden" name="sid" value="{$sid}" />
	  <input type="hidden" name="guess_type" value="only_n" />
	  <input type="hidden" name="player" value="{$player.player_id}" />
	  <input type="hidden" name="event_player" value="{$player.epid}" />
	  <input type="hidden" name="is_guessed" value="{if $player.guess.guess_type=='only_n'}1{else}0{/if}" class="js-guess-only_n-{$player.epid}" />
	  <button type="submmit" class="button button-round {if $player.guess}button-fill color-orange{/if} js-{$player.epid}-only_n"  >{if $player.guess}取消预测{else}×我猜不是{/if}</button>
	  </form>
	  {/if} 
	  {if $player.think_type_way ==3}
	  {if $player.guess}您已经预测{else}请预测{/if}
	  <form action="/?m=kxdrmobile&a=guess" method="GET" class="ajax-submit">
	  <input type="hidden" name="value" value="1" />
	  <input type="hidden" name="eid" value="{$event.id}" />
	  <input type="hidden" name="sid" value="{$sid}" />
	  <input type="hidden" name="guess_type" class="multi" value="yes" />
	  <input type="hidden" name="player" value="{$player.player_id}" />
	  <input type="hidden" name="event_player" value="{$player.epid}" />
	  <input type="hidden" name="is_guessed" value="{if $player.guess.guess_type=='yes'}1{else}0{/if}" class="js-guess-yes-{$player.epid}" />
	  <button type="submmit" class="button button-round {if $player.guess.guess_type=='yes'}button-fill color-orange{/if} js-{$player.epid}-yes"  >{if $player.guess.guess_type=="yes"}已经猜是的{else}√我猜是的{/if}</button>
	  </form>
	  <br />
	  <form action="/?m=kxdrmobile&a=guess" method="GET" class="ajax-submit">
	  <input type="hidden" name="value" value="0" />
	  <input type="hidden" name="eid" value="{$event.id}" />
	  <input type="hidden" name="sid" value="{$sid}" />
	  <input type="hidden" name="guess_type" class="multi" value="no" />
	  <input type="hidden" name="player" value="{$player.player_id}" />
	  <input type="hidden" name="event_player" value="{$player.epid}" />
	  <input type="hidden" name="is_guessed" value="{if $player.guess.guess_type=='no'}1{else}0{/if}" class="js-guess-no-{$player.epid}" />
	  <button type="submmit" class="button button-round {if $player.guess.guess_type=='no'} button-fill color-orange{/if} js-{$player.epid}-no"   >{if $player.guess.guess_type=="no"}已经猜不是{else}×我猜不是{/if}</button>
	  </form>
	  {/if}
	  {if $player.think_type_way ==0}
	  {if $player.guess}您已经预测数据：<span class="js-guess-num-{$player.epid}">{$player.guess.guess_value|default:""}</span>{else}请预测{/if}
	  <div class="searchbar {if $player.guess.guess_type=='number'} guess-num {/if} js-{$player.epid}-number">
		  <form action="/?m=kxdrmobile&a=guess" method="GET" class="row ajax-submit">
			<div class="search-input col-60">
			  <input type="hidden" name="eid" value="{$event.id}" />
			  <input type="hidden" name="sid" value="{$sid}" />
			  <input type="hidden" name="guess_type" class="multi" value="number" />
			  <input type="hidden" name="player" value="{$player.player_id}" />
			  <input type="hidden" name="event_player" value="{$player.epid}" />
			  <input name="value" type="search" class="button"  placeholder='填数字' value="{$player.guess.guess_value|default:""}"/>
			  <input type="hidden" name="guess_id" value="{$player.guess.id|default:0}" class="js-guess-number-id-{$player.epid}" />
			  <input type="hidden" name="reset" value="{$player.guess|default:0}" class="js-guess-number-{$player.epid}" />
			</div>
			<button type="submmit" class="col-40 button  button-fill button-round js-guess-num">{if $player.guess}重猜{else}我猜{/if}</button>
		  </form>
	  </div>
	  <p style="margin:10px 0;color:#CCC">亲，{$player.think_type_way_name}哦！</p>
	  {/if}
	</div>
  {/foreach}
  <br style="clear:both">
</div>
{if $event.game_descrip}
<div class="content-block-title">赛事介绍：</div>
<div class="content-block inset">
<div class="content-block-inner">
  <p class="">
  {$event.game_descrip}
  </p>
</div>
</div>
{/if}
{if $event.description}
<div class="content-block-title">参与提示：</div>
<div class="content-block inset">
<div class="content-block-inner">
  <p class="">
  {$event.description}
  </p>
</div>
</div>
{/if}
<div class="content-block-title">比赛时间：</div>
<div class="content-block inset">
<div class="content-block-inner">
  <p style="text-align:center">
  {$event.start_time|date_format:"%Y年%m月%d日 %H时%M分"}
  </p>
</div>
</div>
<div class="content-block-title">开奖时间：</div>
<div class="content-block inset">
<div class="content-block-inner">
  <p style="text-align:center">
  {$event.gifting_time|date_format:"%Y年%m月%d日 %H时%M分"}
  </p>
</div>
</div>
<div class="content-block-title">您可获得以下奖品：</div>
<div class="content-block case-block">
  {foreach from=$gifts.gifts item=gift key=gid}
  <div class="case giftshow{$key}">
	{if $gift.title}
	<div class="tips tips-small tips-notice">【{$gift.player_name}】{$gift.title}</div>
	{/if}
	<p><span class="gift_cffs_{$key}{$gid}">{$gift.cffs}</span>可获取奖品：</p>
	<img src="{$gift.pic_url|replace:'http:':''}_200x200.jpg" width="40%" />
	<p><span class="gift_name_{$gift.gift_id}">{$gift.name}</span></p>
	<h4>奖品总数：<span  class="show_tip" style="border-bottom:1px dotted #666"><span class="gift_event_quant_{$key}{$gid}">{$gift.event_quant}</span></span>个</h4>
	{if $gift.rule_medal_id>0}
	<p>必须持有该勋章：<br />【<img src="{$gift.rule_medal_pic|cat:'_20x20'|replace:'http:':''}" />{$gift.rule_medal_name}】<br /></p>
	{/if}
	{if $gift.price>0}
	<p>奖品价值：<span style="border-bottom:1px dotted #666"><span class="gift_price_{$key}{$gid}">{$gift.price}</span>元</span></p>
	{/if}
  </div>
  {/foreach}
  </p>
  <br style="clear:both">
</div>
</div>
</div>
</div>
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='/assets/kxdrmobile/sui/my-app.js' charset='utf-8'></script>
  </body>
</html>